import { createContext, useContext } from "react";
import type { ColProps } from "../types";

export interface SeContextType {
	/** 列数 */
	col?: ColProps;
	/** 标签宽度 */
	labelWidth?: number;
}

export const SeContext = createContext<SeContextType>({});

export function useSeContext() {
	return useContext(SeContext);
}
